aboutsummaryrefslogtreecommitdiff
path: root/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenTryTests]/[method:canGenerateCodeForTry(org.shedlang.compiler.testing.snapshots.Snapsho...
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2023-12-15 15:47:58 +0000
committerMichael Williamson <mike@zwobble.org>2023-12-15 15:47:58 +0000
commit3ed2ca517aa5f2424f238817844d8a8eb98e64c2 (patch)
tree8dc70ba88ce76b22f2539adc932deab0c00ac0c1 /snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenTryTests]/[method:canGenerateCodeForTry(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected
parent549ec911f67484c875a09d4b5b8a9a4fc0ecc806 (diff)
Implement int ops in runtime
Diffstat (limited to 'snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenTryTests]/[method:canGenerateCodeForTry(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected')
-rw-r--r--snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenTryTests]/[method:canGenerateCodeForTry(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected17
1 files changed, 7 insertions, 10 deletions
diff --git a/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenTryTests]/[method:canGenerateCodeForTry(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenTryTests]/[method:canGenerateCodeForTry(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected
index d41b1648..e0d7c0f6 100644
--- a/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenTryTests]/[method:canGenerateCodeForTry(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected
+++ b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenTryTests]/[method:canGenerateCodeForTry(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected
@@ -18,12 +18,17 @@ Compilation unit elements:
params=()
return-type=void
)
+(
+ function-decl
+ "shed__runtime__int_create"
+ params=((param "value" int))
+ return-type=int
+)
Locals:
* (val "tmp__0" int)
* (val "effectHandler__0" data-ptr)
* (val "int__0" int)
- * (val "intPointer__0" data-ptr)
* (val "tmp__1" int)
Instructions:
@@ -52,15 +57,7 @@ Instructions:
(
block
(
- (alloc-heap (local "intPointer__0") (struct (int)))
- (
- memory-store
- pointer=(local "intPointer__0")
- layout=(struct (int))
- offset=(0)
- value=(int 42)
- )
- (data-ptr-to-int (local "int__0") (local "intPointer__0"))
+ (call (local "int__0") "shed__runtime__int_create" ((int 42)))
(call _ "shed__runtime__effects_pop_handler" ())
)
results=((local "int__0"))